import Cookies from "js-cookie";

const TokenKey = "Admin-Token";
const NeedToModifyKey = 'needToModify'
const EditToken = 'editToken'

export function getToken() {
    return Cookies.get(TokenKey);
}

export function setToken(token) {
    return Cookies.set(TokenKey, token);
}

export function removeToken() {
    return Cookies.remove(TokenKey);
}
export function getNeedToModify() {
    return Cookies.get(NeedToModifyKey);
}
export function setNeedToModify(needToModify) {
    return Cookies.set(NeedToModifyKey, needToModify);
}
export function removeNeedToModify() {
    return Cookies.remove(NeedToModifyKey);
}
export function getEditToken() {
    return Cookies.get(EditToken);
}
export function setEditToken(needToModify) {
    return Cookies.set(EditToken, needToModify);
}
export function removeEditToken() {
    return Cookies.remove(EditToken);
}
